package chapter;

import java.awt.Button;
import java.awt.FlowLayout;
import java.awt.Frame;

public class MyFlow 
{
   private Frame f;
   private Button button1,button2,button3;
   public static void main(String[]args){
	   MyFlow mflow=new MyFlow();
	   mflow.go();
	   
   }
   /**
 * 
 */
public void go(){
	   f= new Frame("Flow layout");
	   f.setLayout(new FlowLayout());
	   button1= new Button("OK");
	   button2= new Button("OPEN");
	   button3= new Button("CLOSE");
	   f.add(button1);
	   f.add(button2);
	   f.add(button3);
	   f.setSize(100,200);
	   f.setVisible(true);
	   
   }
}
